<template>
  <div class="side">
    <ul>
      <div class="title">
        <img src="../../assets/logo.png" alt="" />
        <span>HotelAdmin</span>
      </div>
      <router-link to="/home/show">
        <i class="iconfont icon-diannao"></i><span>工作台</span>
      </router-link>
      <router-link to="/home/roomList"
        ><i class="iconfont icon-caidan"></i><span>房间列表</span></router-link
      >
      <router-link to="/home/roomAdd"
        ><i class="iconfont icon-fangjian"></i><span>房间上线</span></router-link
      >
      <router-link to="/home/dinnerList"
        ><i class="iconfont icon-shijian"></i><span>餐品列表</span></router-link
      >
      <router-link to="/home/dinnerAdd"
        ><i class="iconfont icon-qucan"></i><span>餐品上新</span></router-link
      >
      <router-link to="/home/order"
        ><i class="iconfont icon-dingdandingdanchaxun"></i><span>订单管理</span></router-link
      >
      <router-link to="/home/comment"
        ><i class="iconfont icon-xiaoxi"></i><span>评论管理</span></router-link
      >
      <router-link to="/home/user"
        ><i class="iconfont icon-yonghuguanli_huaban"></i><span>用户列表</span></router-link
      >
    </ul>
  </div>
</template>
<script lang="ts" setup></script>

<style lang="less" scoped>
.side {
  @media screen and (max-width: 996px) {
    display: none;
  }

  height: 100%;
  width: 230px;
  padding: 20px;
  font-size: 18px;
  color: var(--color);
  background-color: var(--ElementFill);
  border-right: 1px solid rgba(204, 204, 204, 0.3);
  border-radius: 8px 0 0 8px;
  box-sizing: border-box;
  user-select: none;

  ul {
    display: flex;
    flex-direction: column;

    .title {
      width: 100%;
      height: 60px;
      display: flex;
      align-items: center;

      span {
        font-size: 18px;
        font-weight: bold;
      }

      img {
        width: 60px;
        height: 60px;
      }
    }

    a {
      display: flex;
      align-items: center;
      height: 45px;
      text-decoration: none;
      color: var(--color);
      margin: 6px 0;
      border-radius: 5px;
      padding: 0 10px;
      i {
        font-size: 25px;
      }
      &:active {
        background-color: rgba(0, 0, 0, 0.1);
      }

      span {
        margin-left: 10px;
      }
    }
  }
}
</style>
